import React from "react";
import { Router } from "react-router-dom";
import routeConfig from "./routes";
import RouterView from "../components/RouterView";
import history from "../util/history";
const RootRouter = props => {
  return (
    <Router history={history}>
      <RouterView {...props} routes={routeConfig}></RouterView>
    </Router>
  );
};
export default RootRouter;
